window.onload = function(){load();}

function load(){
    var str = window.location.href;
    //str.split('/');
    var a = /\d+/.exec(str);
    //$("#time").append("<p class=''>" + str +"</p>");
    getContent(a);
}

function getContent(k){
     $("#time").html("");
     $("#address").html("");
     $("#people").html("");
     $("#matter").html("");
     $.get(
        "http://localhost/registration_system/main/showOneActInfo/"+k,
            function(data){
            var arr = new Array();
            arr = JSON.parse(data);
            // console.log(arr);
            $("#time").append("<p class=''>" + arr.activity_item.dtActStartTime +"到"+arr.activity_item.dtActEndTime+"</p>");
            $("#address").append("<p class=''>" + arr.activity_item.vcActHost + "</p>");   
            $("#people").append("<p class=''>" + arr.activity_item.vcActTarget + "</p>");
            $("#matter").append("<p class='font2'>" + arr.activity_item.vcActIntroduction + "</p>"); 
        });
}
